import request from '@/utils/request';

//登录
export function login(data) {
	return request({
		method: 'post',
		url: 'login',
		params: data
	})
}

//登录成功调用
export function addUserInfo(data) {
	return request({
		method: 'get',
		url: 'tbSysUser/addUserInfo/' + data,
	})
}

//注册
export function register(data) {
	return request({
		method: 'post',
		url: 'tbSysUser/register',
		data,
	})
}